using Sandia.MVCFramework.Data;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sandia.MVCFramework.ExportTools
{
    /// <summary>
    /// A wrapper object to enable giving a payload a new,
    /// unique type by creating a new class that inherits
    /// from this class and using that new class' type
    /// for data subscriptions
    /// </summary>
    public class Container: IData
    {
        IData payload = null;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="payload">The payload to place in the container</param>
        public Container(IData payload)
        {
            this.payload = payload;
        }

        /// <summary>
        /// The payload in this container
        /// </summary>
        public IData Payload
        {
            get
            {
                return this.payload;
            }
        }
    }
}
